arduinoLibDIR=/cygdrive/c/Program\ Files/arduino/1.04/libraries

clean	:
	rm bin/test/*.o
	rm bin/*.o
	
bin/que.o	:	src/que/que.c
	gcc -c src/que/que.c  -o bin/que.o -I inc/ -D PC
bin/test/queTest.o 	:	src/que/test/queTest.c
	gcc -c src/que/test/queTest.c -o bin/test/queTest.o -I inc/ 
bin/test/queTest	:	bin/que.o	bin/test/queTest.o 
	gcc bin/test/queTest.o bin/que.o -o bin/test/queTest	
runQueTest	:	bin/test/queTest
	bin/test/queTest	


bin/command.o	:	src/command/command.c
	gcc -c src/command/command.c  -o bin/command.o -I inc/ -D PC
bin/test/commandTest.o	:	src/command/test/commandTest.c
	gcc -c src/command/test/commandTest.c -o bin/test/commandTest.o -I inc/ 
bin/test/commandTest	:	bin/command.o	bin/test/commandTest.o bin/que.o
	gcc bin/test/commandTest.o bin/command.o bin/que.o -o bin/test/commandTest
runCommandTest	:	bin/test/commandTest
	bin/test/commandTest
 
runTest	: runCommandTest runQueTest

deployArd	:
	mkdir deploy/ardLib/que/ -p
	cp src/que/que.c deploy/ardLib/que/que.cpp
	cp inc/que.h deploy/ardLib/que/que.h
	mkdir $(arduinoLibDIR)/que/ -p
	cp -f deploy/ardLib/que/* $(arduinoLibDIR)/que/
	
	mkdir deploy/ardLib/command/ -p
	cp src/command/command.c deploy/ardLib/command/command.cpp
	cp inc/command.h deploy/ardLib/command/command.h
	mkdir $(arduinoLibDIR)/command/ -p
	cp -f deploy/ardLib/command/* $(arduinoLibDIR)/command/
	
deployLib	:
	mkdir deploy/lib/ -p
	mkdir deploy/lib/src/ -p
	mkdir deploy/lib/src/que -p
	mkdir deploy/lib/src/command -p
	mkdir deploy/lib/includes/ -p
	
	cp -f src/que/que.c deploy/lib/src/que/que.c
	cp -f inc/que.h deploy/lib/includes/que.h
	
	cp -f src/command/command.c deploy/lib/src/command/command.c
	cp -f inc/command.h deploy/lib/includes/command.h